package org.sys.transporttrainsys.repository;

import org.sys.transporttrainsys.entity.StudentExamStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentExamStatusRepository extends JpaRepository<StudentExamStatus, Long> {
    List<StudentExamStatus> findByStudentId(Long studentId); // 根据学员ID查询
    List<StudentExamStatus> findByExamId(Long examId); // 根据考试ID查询
}